package top.zhangjianyong.tools.service.api;

import top.zhangjianyong.tools.entity.guanjiangyuan.House;
import top.zhangjianyong.tools.entity.guanjiangyuan.People;
import top.zhangjianyong.tools.utils.ApiResponse;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public interface GuanjianyuanService {
    ApiResponse searchHouse(String key);

    ApiResponse add(House house);

    ApiResponse update(House house);

    ApiResponse del(String id);

    ApiResponse peopleList(String houseNo);

    ApiResponse peopleAdd(People people);

    ApiResponse peopleUpdate(People people);

    ApiResponse peopleDel(String id);

    ApiResponse download(HttpServletResponse response) throws IOException;
}
